package com.woniuxy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;
import java.util.Map;

/**
 * @author 佘赛飞
 * @create 2021 -11 -18 10:10 PM
 */
@Controller
@RequestMapping("/map")
public class MapController {
    @RequestMapping("/mapUpdateuser")
    public ModelAndView mapUpdateuser(@RequestParam Map user, @RequestParam List list) {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("user", "传入的map参数是：" + user);
        modelAndView.addObject("list", "传入的list参数是：" + list);
        modelAndView.setViewName("mapview");
        return modelAndView;
    }
}
